This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.sec({ | |
act:'savekey', | |
params: | |
{keytype:'public|private|secret|modulu', | |
key:'<key value>', | |
__cuid:'<optional-client unique device id>', | |
__session_id:'<optional-session id for the key>'} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
plaintext: '<decrypted data in plain text>' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.sec({ | |
act:'decrypt', | |
params: | |
{algorithm:'RSA|AES', | |
ciphertext:'<data to decrypt>', | |
key: '<private key hex value for RSA decryption or secret key hex value for AES decryption>', | |
modulu: '<hex value of the modulu for RSA decryption>' | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
ciphertext: '<hex value of the encrypted data>' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.sec({ | |
act:'encrypt', | |
params: | |
{algorithm:'RSA|AES', | |
plaintext:'<data to encrypt>', | |
key: '<public key hex value for RSA encryption or secret key hex value for AES encryption>', | |
modulu: '<hex value of the modulu for RSA encryption>' | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
hashvalue:"<The hash value of the input text>" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.sec({ | |
act:'hash', | |
params: | |
{algorithm:'MD5|SHA1', | |
text:'<Input text for hashing>'} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
algorithm:'AES', | |
secretkey:'<hex value of the secret key>' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
algorithm:'RSA', | |
publickey:'<hex value of the public key>', | |
privatekey: '<hex value of the private key>', | |
modulu:'<hex value of the modulu>' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fh.sec({ | |
act:'keygen', | |
params: | |
{algorithm:'RSA|AES', | |
keysize:'1024|128'} | |
}); |