Re: C# Sign, wodCrypt Verifies signature - WeOnlyDo Discussion board

Re: C# Sign, wodCrypt Verifies signature (General questions)

by wodSupport, Monday, January 17, 2005, 03:11 (7252 days ago) @ wodSupport

wodCrypt verifies signature: [code] Dim k As New Keys
k.FromXmlString ( <RSAKeyValue><Modulus>26NtFkEYNumpdM9/1Ie+TnoBaOCi6ZtGdrfFcFP7Aq/0zSt2iLPeu1mIwpO4x445mdsm3D+R5fgF/5bdSXPmh7QpeElG5GbkCO6YnLRoktOLu2TtEME59ripyMVeM8xahJj+8BnkKsZrwj2mPFlYxmc+DBIuRGm3f8FfDf5kpmc=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue> )

Dim inb As New MemBlob
inb.FromBase64 IRH1ZMSKABNYFS/NRIIrG9LJ03aQ3oQ3qifW9qjI0tdJO/cDCP+f4FLUKCzoRpHb7hkoJpy9yKUX6nhQCtKd/sL9WfYbZwbKhB0oVja/qrN3XprFcqi+qLZ9qcbibkLT1hiJiDCUxCg61sGwfTjEoINcVX/4T4CxveSH1HKzDZI=

Dim indata As New MemBlob
indata.Text = ABCD

Dim crypt As New wodCryptCom
crypt.Type = RSA
crypt.SecretKey = k.PublicKeyOpenSSH(RSAkey)
MsgBox crypt.Verify(indata, inb)[/code]


Complete thread: