You need to sign in to do that
Don't have an account?
hu yang
How to use "Crypto.sign"
When i use the sample code that is provided by salesforce,I got a error "System.SecurityException: Invalid Crypto Key".
Who can tell me how to use "Crypto.sign".
Thanks.
The blow is the sample code:
String algorithmName = 'RSA';
String key = 'pkcs8 format private key';
Blob privateKey = EncodingUtil.base64Decode(key);
Blob input = Blob.valueOf('12345qwerty');
Crypto.sign(algorithmName, input,privateKey);
Who can tell me how to use "Crypto.sign".
Thanks.
The blow is the sample code:
String algorithmName = 'RSA';
String key = 'pkcs8 format private key';
Blob privateKey = EncodingUtil.base64Decode(key);
Blob input = Blob.valueOf('12345qwerty');
Crypto.sign(algorithmName, input,privateKey);
Here is some documentaiton: http://www.openssl.org/docs/apps/openssl.html
And, sample commands: