RE: Encrypt Blob issue - nevermind

2019-03-28 Thread Chip Scheide via 4D_Tech
The table for which an encryption key pair was *supposed* to have been 
generated and saved (in the trigger - so it would always happen...). 
The trigger check boxes in the structure were not on.

So the trigger was never called, and the key pair was never created.
When I tried to encrypt a blob with an empty key - error 
The error **could** be cleared... but I eventually found it.

Thanks
Chip

On Thu, 28 Mar 2019 15:38:14 +, Vance Villanueva wrote:
> Hi Chip,
> 
> Can you try the following code to see if this works for you?
> 
> // ===
> 
> C_TEXT($pkey)
> C_BLOB($blob;$vtEncrypted;$blob2)
> 
> QUERY([Table_1];[Table_1]ID=2)
> 
> $pkey:="2132329"
> $blob:=[Table_1]Field_blob
> 
> TEXT TO BLOB($pkey;$blob2)
> VARIABLE TO BLOB($blob;$vtEncrypted)
> 
> ENCRYPT BLOB($vtEncrypted;$blob2)
> 
> // ===
> 
> Documentation of the command:
> 
> https://doc.4d.com/4Dv17R3/4D/17-R3/ENCRYPT-BLOB.301-3906852.en.html
> 
> 
> 
> Regards,
> 
> Vance Villanueva
> 
> 
> 
> Vance Villanueva
> Technical Services Engineer
> 
> 4D Inc
> 95 S. Market Street, Suite #240
> CA 95113 San Jose
> United States
> 
> Téléphone : +1-408-557-4600
> Standard :  +1-408-557-4600
> Fax :   +1-408-271-5080
> Email : vvillanu...@4d.com
> Web :   www.4D.com
> 
> 
> 
> 
> 
> -Original Message-
> From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Chip 
> Scheide via 4D_Tech
> Sent: Thursday, March 28, 2019 8:21 AM
> To: 4D iNug Technical
> Cc: Chip Scheide
> Subject: Encrypt Blob issue
> 
> When I attempt to encrypt a blob field I get an error "The BLOB could
> not be created" error 1.
> Is this expected behavior??
> 
> Chip
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
> 
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Encrypt Blob issue

2019-03-28 Thread Vance Villanueva via 4D_Tech
Hi Chip,

Can you try the following code to see if this works for you?

// ===

C_TEXT($pkey)
C_BLOB($blob;$vtEncrypted;$blob2)

QUERY([Table_1];[Table_1]ID=2)

$pkey:="2132329"
$blob:=[Table_1]Field_blob

TEXT TO BLOB($pkey;$blob2)
VARIABLE TO BLOB($blob;$vtEncrypted)

ENCRYPT BLOB($vtEncrypted;$blob2)

// ===

Documentation of the command:

https://doc.4d.com/4Dv17R3/4D/17-R3/ENCRYPT-BLOB.301-3906852.en.html



Regards,

Vance Villanueva




-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Chip Scheide 
via 4D_Tech
Sent: Thursday, March 28, 2019 8:21 AM
To: 4D iNug Technical
Cc: Chip Scheide
Subject: Encrypt Blob issue

When I attempt to encrypt a blob field I get an error "The BLOB could
not be created" error 1.
Is this expected behavior??

Chip
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**