afAxonatorExt

Encrypts and obfuscates Axon source code
afAxonatorExtAxon funcs

Registered StackHub users may elect to receive email notifications whenever a new package version is released or a comment is posted on the forum.

v0.9.6

afAxonateFile
afAxonateFile(axonFile, passPhrase, keyFunc, options: null)

Encrypts the given Axon trio file by obfuscating the src fields.

passPhrase is a seed string that's used to generate the actual secretKey used to encrypt the axon source code.

keyFunc may either be a Str or a Fn that returns a Str of Axon code, that when executed, should return the secretKey.

options defaults to null and is not used at this time.

Example:

afAxonateFile(`io/funcs.trio`, "<passPhrase>", keyFunc)

Returns a Dict which contains, amongst other fields, the secret key needed to run the functions.

Fantom signature:
@Axon const static Dict afAxonateFile(Uri axonFile, Str passPhrase, Obj keyFunc, Dict? options := null)
afAxonateFunc
afAxonateFunc(funcRec, passPhrase, keyFunc, options: null)

Encrypts the given function record by obfuscating the src field.

passPhrase is a seed string that's used to generate the actual secretKey used to encrypt the axon source code. keyFunc may either be a Str or an Fn that returns a Str of Axon code, that when executed, should return the secretKey. options defaults to null and is not used at this time.

Example:

afAxonateFunc({func, "name": "fnName", "src": "() => ..."}, "<passPhrase>", keyFunc)

Returns a Dict which contains, amongst other fields, the secret key needed to run the function.

Fantom signature:
@Axon const static Dict afAxonateFunc(Dict funcRec, Str passPhrase, Obj keyFunc, Dict? options := null)
afAxonatorStackHubKeyFunc
afAxonatorStackHubKeyFunc(stackHubKey, stackHubVal)

Returns a keyFunc function that finds a StackHub licence that matches the given key and value, and returns the axonatorKey property from that licence.

stackHubKey

stackHubVal

product

a matching product ID, example:. xxxx-xxxx productName

packages

a package version, example:. pkg 1.0

The returned keyFunc can only be used in axonate functions.

Example:

keyFunc : afAxonatorStackHubKeyFunc("product", "xxxx-xxxx productName")
axonate : afAxonateFile(`io/funcs.trio`, "<passPhrase>", keyFunc)
Fantom signature:
@Axon const static Obj afAxonatorStackHubKeyFunc(Str stackHubKey, Str stackHubVal)
Published by Fantom Factory

Products & Services by Fantom Factory

Packages by Fantom Factory

Commercial packages

Free packages