mirror of
https://github.com/certd/certd.git
synced 2026-04-22 02:47:25 +08:00
chore:
This commit is contained in:
@@ -6,7 +6,7 @@ export class BaseOpenController extends BaseController {
|
||||
const openKey: OpenKey = this.ctx.openKey;
|
||||
if (openKey.encrypt) {
|
||||
const data = JSON.stringify(res);
|
||||
const encryptor = new Encryptor(openKey.keySecret);
|
||||
const encryptor = new Encryptor(openKey.keySecret, 'hex');
|
||||
const encrypted = encryptor.encrypt(data);
|
||||
return this.ok(encrypted);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user