ENCODE function (2024)

Table of Contents
Syntax Example Notes

Encodes a source character string and returnsthe encoded character string result.

Syntax

expression
An expression that results in a character string value. If youuse a constant, you must enclose it in quotation marks (" ").

Example

Thisprocedure uses the ENCODE function to disguise a password that the userenters, and then displays the encoded password:

r-encode.p

DEFINE VARIABLE password AS CHARACTER NO-UNDO FORMAT "x(16)".DEFINE VARIABLE id AS CHARACTER NO-UNDO FORMAT "x(12)".DEFINE VARIABLE n-coded-p-wrd AS CHARACTER NO-UNDO FORMAT "x(16)".SET id LABEL "Enter user id" password LABEL "Enter password" BLANK WITH CENTERED SIDE-LABELS.n-coded-p-wrd = ENCODE(password).DISPLAY n-coded-p-wrd LABEL "Encoded password".

Notes

  • Youcan use the ENCODE function to encode a string that contains double-bytecharacters.
  • The ENCODE function performs a one-way encoding operation that youcannot reverse. It is useful for storing scrambled copies of passwords ina database. It is impossible to determine the original passwordby examining the database. However, a procedure can prompt a userfor a password, encode it, and compare the result with the stored,encoded password to determine if the user supplied the correct password.
  • In order to ensure reliable results, the original encoding andany subsequent encoded comparisons must run in the same code page.In environments with multiple code pages, Progress Software Corporation strongly recommendsthat programs use the CODEPAGE-CONVERT function so that occurrencesof the ENCODE function related to the same strings run in the samecode page.
  • The output of the ENCODE function is 16 characters long. Makesure the target field size is at least 16 characters long.
ENCODE function (2024)
Top Articles
4 Ways to Immigrate to Canada After 40 years of Age
What colors go with anything?
7 C's of Communication | The Effective Communication Checklist
Frases para un bendecido domingo: llena tu día con palabras de gratitud y esperanza - Blogfrases
Housing near Juneau, WI - craigslist
Devotion Showtimes Near Mjr Universal Grand Cinema 16
My Boyfriend Has No Money And I Pay For Everything
The Idol - watch tv show streaming online
Emmalangevin Fanhouse Leak
Mail Healthcare Uiowa
Pike County Buy Sale And Trade
Bed Bath And Body Works Hiring
Mndot Road Closures
Planets Visible Tonight Virginia
104 Presidential Ct Lafayette La 70503
Spelunking The Den Wow
Builders Best Do It Center
Cooktopcove Com
Diesel Mechanic Jobs Near Me Hiring
Craigslist Free Stuff Santa Cruz
Elemental Showtimes Near Cinemark Flint West 14
Craigslist Free Stuff Merced Ca
CVS Near Me | Columbus, NE
Accident On 215
The BEST Soft and Chewy Sugar Cookie Recipe
Zillow Group Stock Price | ZG Stock Quote, News, and History | Markets Insider
LCS Saturday: Both Phillies and Astros one game from World Series
Play Tetris Mind Bender
Rogue Lineage Uber Titles
Lovindabooty
Relaxed Sneak Animations
Town South Swim Club
Marlene2295
Southtown 101 Menu
Mia Malkova Bio, Net Worth, Age & More - Magzica
Devotion Showtimes Near The Grand 16 - Pier Park
Golden Tickets
KITCHENAID Tilt-Head Stand Mixer Set 4.8L (Blue) + Balmuda The Pot (White) 5KSM175PSEIC | 31.33% Off | Central Online
Kelley Blue Book Recalls
814-747-6702
Ehc Workspace Login
Matt Brickman Wikipedia
Cch Staffnet
Swsnj Warehousing Inc
Random Animal Hybrid Generator Wheel
Costco The Dalles Or
2294141287
Wisconsin Volleyball titt*es
Congruent Triangles Coloring Activity Dinosaur Answer Key
Bedbathandbeyond Flemington Nj
10 Best Tips To Implement Successful App Store Optimization in 2024
Latest Posts
Article information

Author: Merrill Bechtelar CPA

Last Updated:

Views: 5735

Rating: 5 / 5 (70 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Merrill Bechtelar CPA

Birthday: 1996-05-19

Address: Apt. 114 873 White Lodge, Libbyfurt, CA 93006

Phone: +5983010455207

Job: Legacy Representative

Hobby: Blacksmithing, Urban exploration, Sudoku, Slacklining, Creative writing, Community, Letterboxing

Introduction: My name is Merrill Bechtelar CPA, I am a clean, agreeable, glorious, magnificent, witty, enchanting, comfortable person who loves writing and wants to share my knowledge and understanding with you.