Better check in SecretBox

This commit is contained in:
2024-09-10 00:33:07 +02:00
parent 20ab37068d
commit f2fee1d56f
+1 -1
View File
@@ -66,7 +66,7 @@ export default class SecretBox {
log.trace('fromString')
const parts = data.split('.')
if (parts.length < 2) {
if (parts.length !== 2) {
log.warn('Invalid parts count')
return null
}