Crypto
This is a simple set of static function encryption routines.
Static Method Summary
| Static Public Methods | ||
| public static |
decryptShortTerm(v: *): *: string This does a simple AES descryption to avoid spilling secrets in logs. |
|
| public static |
encryptShortTerm(v: *): *: string This does a simple AES encryption to avoid spilling secrets in logs. |
|
| public static |
Simple sha256 computtion |
|
Static Public Methods
public static decryptShortTerm(v: *): *: string source
This does a simple AES descryption to avoid spilling secrets in logs. The key is effectively random for a node execution so don't use this to store data in a database.
Params:
| Name | Type | Attribute | Description |
| v | * |
Return:
| * |