Cipher object method · N/crypto
update()
Cipher.update(options)
Updates the clear data with the specified encoding.
- Implementation
- Not started
- Design
- Open for proposals suggest how it should read
A
suitescript api
1objCipher.update({2 input: /* string, required */,3 inputEncoding: /* enum, optional */4});
| Parameter | Type | Required | Description |
|---|---|---|---|
| options.input | string | required | The clear data to be updated. |
| options.inputEncoding | enum | optional | The input encoding. Use the encode.Encoding enum to set the value. The default value is encode.Encoding.UTF-8 . |
B
mynt syntax
No Mynt syntax yet.
Nothing in the language compiles to Cipher.update(options) today. How should it read?
C
community proposals
Competing syntax for update, from GitHub Discussions. Select two or more to compare them side by side.
Loading proposals from GitHub…
D
suggest an alternative
Write the Mynt you wish you could write.
A good proposal shows the syntax, the SuiteScript it should become, and argues for it: why it is clearer, how it fits the rest of the language, what it makes harder.
- Clarity. Does it say what happens, without ceremony?
- Consistency. Does it read like
load,saveandRef[field]? - Expressiveness. Does it cover the cases people actually write?
- Honesty. Does it hide a NetSuite cost, such as governance, that a reader should see?