StackHub Bulletin BoardAdvertise your announcements here!

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.

There is 1 watcher.

v0.9.10

afAxonateFile
afAxonateFile(axonFile, passPhrase, keyFunc: null, 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.

Example:

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

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

By default, the encrypted source contains the secretKey which is fine for obfuscation and general purpose use. Alternatively a keyFunc may be passed in. The keyFunc should either be a Str of Axon code, or a Fn that returns a Str of Axon code, that when executed returns the secretKey. Also see afAxonatorStackHubKeyFunc.

If keyFunc is an Axon Fn it is called with two arguments: fnName and secretKey.

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

Fantom signature:
@Axon const static Dict afAxonateFile(Uri axonFile, Str passPhrase, Obj? keyFunc := null, Dict? options := null)
afAxonateFunc
afAxonateFunc(funcRec, passPhrase, keyFunc: null, 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.

Example:

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

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

By default, the encrypted source contains the secretKey which is fine for obfuscation and general purpose use. Alternatively a keyFunc may be passed in. The keyFunc should either be a Str of Axon code, or a Fn that returns a Str of Axon code, that when executed returns the secretKey. Also see afAxonatorStackHubKeyFunc.

If keyFunc is an Axon Fn it is called with two arguments: fnName and secretKey.

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

Fantom signature:
@Axon const static Dict afAxonateFunc(Dict funcRec, Str passPhrase, Obj? keyFunc := null, 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

package

a simple 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