Skip to content

[FAQ] How to calculate the hash or md5 value of KCL objects #145

@Peefy

Description

@Peefy
import crypto

schema Person:
    a: int
    
aa = Person {a = 1}
bb = Person {a = 2}
cc = Person {a = 2}
aahash = crypto.md5(str(aa))
bbhash = crypto.md5(str(bb))
cchash = crypto.md5(str(cc))

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions