Skip to content

MD5 is not a message authentication function #1

@jcoglan

Description

@jcoglan

In this line, you use MD5 to 'sign' some user data:

signature = Digest::MD5.hexdigest(sig_str + secret);

MD5 should not be used to cryptographically sign data. You should be using a message authentication function like HMAC for this purpose.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions