Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于加密函数-‘rsaEncryptPKCS1v15’未声明的引用报错 #1842

Open
SurnIce opened this issue Dec 2, 2024 · 0 comments
Open

关于加密函数-‘rsaEncryptPKCS1v15’未声明的引用报错 #1842

SurnIce opened this issue Dec 2, 2024 · 0 comments

Comments

@SurnIce
Copy link

SurnIce commented Dec 2, 2024

将password,publickey定义在set中,并定义encrypted_password: rsaEncryptPKCS1v15(password, publicKey)
set:
password: randomLowercase(8)
md5_password: md5(password)
publicKey: string("-----BEGIN RSA PUBLIC KEY-----\nMr1mDO1/qDiJ\ngRcF+9/VKi/5hmqJ2jpL3BYGv9EEmwnwTSRoKizWNJD++sLR4ae7HRPrFCf1LbiIeQIDAQAB\n-----END RSA PUBLIC KEY-----")
encrypted_password: rsaEncryptPKCS1v15(password, publicKey)
报错如下
image
ERROR: :1:25: undeclared reference to 'rsaEncryptPKCS1v15' (in container '')
将encrypted_password: rsaEncryptPKCS1v15(password, publicKey)写在output中也报错
将加密函数rsaEncryptPKCS1v15改为md5时正常

期望:
将规则获取到的publickey能对指定明文密码进行加密,后续其他包中需要用到此加密后的密码新建账号
能解决这里的报错ERROR: :1:25: undeclared reference to 'rsaEncryptPKCS1v15' (in container ''),应该如何书写

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant