arturo-lang / arturo

Simple, expressive & portable programming language for efficient scripting
http://arturo-lang.io
MIT License
707 stars 32 forks source link

[Crypto\encode] Move function to different module? #235

Open github-actions[bot] opened 3 years ago

github-actions[bot] commented 3 years ago

[Crypto\encode] Move function to different module?

Function doesn't really correspond to cryptography anymore. Or at least most of it. What should be done?

https://github.com/arturo-lang/arturo/blob/e4c718d03cc69283d5f04ef8a1bb5c2bee691d9a/src/library/Crypto.nim#L62

                    stack.push(newString(x.s.decode()))

    # TODO(Crypto\encode) Move function to different module?
    #  Function doesn't really correspond to cryptography anymore. Or at least most of it. What should be done?
    builtin "encode",
        alias       = unaliased, 
        rule        = PrefixPrecedence,
        description = "decode given value (default: base-64)",
        args        = {
            "value" : {String,Literal}
        },
        attrs       = {
            "url"   : ({Boolean},"encode URL based on RFC3986"),
            "from"  : ({String},"source character encoding (default: CP1252)"),
            "to"    : ({String},"target character encoding (default: UTF-8)")
        },
        returns     = {String,Nothing},
        example     = """

13034e457f0b8a5b14991e8b442a65131997da1e

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

Closing issue as stale.

stale[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.