Skip to content

How can i use the policy encryption and decryption which includes more than 1 attribute? #1

@1ofvc

Description

@1ofvc

such as
attrs:=[]string{"A", "B", "C"}
departAttr:="(A OR D) AND B"
without the Hash function to deal with departAttr, enc the msg with departAttr directly.
And the result is:

enc:

dec:
runtime error: invalid memory address or nil pointer dereference

If you see this problem,could you please give me some help. Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions