fix(core): update
This commit is contained in:
@ -42,6 +42,16 @@ export const sha256FromString = async (stringArg: string): Promise<string> => {
|
||||
return hashResult;
|
||||
};
|
||||
|
||||
/**
|
||||
* Computes sha256 Hash from String
|
||||
*/
|
||||
export const sha256FromBuffer = async (bufferArg: Buffer): Promise<string> => {
|
||||
const hash = plugins.crypto.createHash('sha256');
|
||||
hash.update(bufferArg);
|
||||
const hashResult = hash.digest('hex');
|
||||
return hashResult;
|
||||
};
|
||||
|
||||
/**
|
||||
* computes sha265 Hash from Object
|
||||
*/
|
||||
|
Reference in New Issue
Block a user